package com.yenroc.invoice.pojo.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "EInvoice")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class EInvoiceXmlDTO {
    @XmlElementRef(name = "Header")
    private HeaderXmlDTO header;

    @XmlElementRef(name = "EInvoiceData")
    private EInvoiceDataXmlDTO eInvoiceData;

    @XmlElementRef(name = "SellerAuthentication")
    private SellerAuthenticationXmlDTO sellerAuthentication;

    @XmlElementRef(name = "TaxSupervisionInfo")
    private TaxSupervisionInfoXmlDTO taxSupervisionInfo;

    @XmlElement
    private String ptbh;
}